<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML>
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>新增用户</title>
    <link rel="stylesheet" type="text/css"
			href="<%=basePath%>jslib/bootstrap/css/bootstrap.css">
		<link rel="stylesheet" type="text/css"
			href="<%=basePath%>css/theme.css">
		<link rel="stylesheet"
			href="<%=basePath%>jslib/font-awesome/css/font-awesome.css">
		<script src="<%=basePath%>jslib/jquery-1.7.2.min.js"
			type="text/javascript"></script>
    
	

  </head>
  
 <body class="content1">
		<div class="header">
			<h1 class="page-title">
				新增用户
			</h1>
		</div>

		<ul class="breadcrumb">
			<li>
				<a href="index.html">用户管理</a>
				<span class="divider">/</span>
			</li>
			<li class="active">
				新增用户
			</li>
		</ul>

		<div class="container-fluid">
			<div class="row-fluid">
				<form method="post" action="<%=basePath%>sys/user?cmd=add">
					<div class="btn-toolbar">
						<input type="submit" class="btn btn-primary" value="保存 ">
						<a href="<%=basePath%>sys/user?cmd=list" class="btn">取消</a>

					</div>

					<div class="well">
						<div class="tab-pane active in">
							<label>
								用户名：
							</label>
							<input type="text" name="username" maxlength="20">
							<label>
								真实名称：
							</label>
							<input type="text" name="usertruename" maxlength="20">
							<label>
								用户密码：
							</label>
							<input type="password" name="userpwd" maxlength="20">
							<label>
								角色：
							</label>
							<select name="roleid">
							
								<option value="0">
									请选择
								</option>
								<c:forEach items="${list}" var="item">
								
									<option value="${item.roleid}">
										${item.rolename}
								    </option>
								   
								
								</c:forEach>
								
							</select>
							<label>
								用户状态：
							</label>
							<select name="userstate">
								<option value="1">
									正常
								</option>
								<option value="0">
									锁定
								</option>
							</select>
							<div style="color: red">
								${msg}
							</div>
						</div>
					</div>
				</form>
			</div>
		</div>
	</body>
</html>
